/**
 ******************************************************
 * 作者:朱雍
 * 备注:
 * 时间:2017年3月14日下午4:11:21
 * Copyright (c) 2017, 243813208@qq.com All Rights Reserved.
 ******************************************************
 */

package cn.sxt.yxl.users.pojo;

import java.util.Date;

/**
 * 类名:AAdmins 
 * 备注:	 
 * 时间:2017年3月14日 下午4:11:21
 * 作者:朱雍
 * @since  	JDK 1.8	 
 */
public class AAdmins {

	private int id;
	private int roleId;
	private String email;
	private String passWord;
	private String phone;
	private String qq;
	private String trueName;
	private String photoPath;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date lastLoginTime;
	private ARole role;
	private String statusStr;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getRoleId() {
		return roleId;
	}
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getTrueName() {
		return trueName;
	}
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	public String getPhotoPath() {
		return photoPath;
	}
	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}
	public byte getStatus() {
		return status;
	}
	public void setStatus(byte status) {
		this.status = status;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	public ARole getRole() {
		return role;
	}
	public void setRole(ARole role) {
		this.role = role;
	}
	public String getStatusStr() {
		AAdminsEnum[] adminsEnums = AAdminsEnum.values();
		for (int i = 0; i < adminsEnums.length; i++)
		{
			AAdminsEnum adminsEnum = adminsEnums[i];
			if(adminsEnum.toString().startsWith("STATUS_")
					&& adminsEnum.getStatus() == this.getStatus())
			{
				this.statusStr = adminsEnum.getName();
			}
		}
		return statusStr;
	}
	public void setStatusStr(String statusStr) {
		this.statusStr = statusStr;
	}
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	
}

